package com.icode.dao;

import com.icode.core.dto.house.MyHouseDTO;
import com.icode.core.model.house.HouseWeek;
import com.icode.core.model.house.HouseWeekTime;
import com.icode.core.model.house.MyHouse;
import com.icode.core.model.manage.Reserve;
import com.icode.core.model.manage.ReserveTime;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-4-15
 * Time: 上午10:01
 * To change this template use File | Settings | File Templates.
 */
public interface ReserveDao extends EntityDao {

    void changeReserveStatus(String status, String guid);

    List<Reserve> findAllAndOrder();

    List<HouseWeekTime> findHouseWeekTimeBy(String month, HouseWeek houseWeek);

    List<Reserve> findReserved();

    List<Reserve> findAllByMyHouseDTO(MyHouse myHouse);

    ReserveTime findReserveTimeByHouseWeekTime(HouseWeekTime houseWeekTime);

    List<Reserve> findReserveByUserInfoUsername(String username);
}
